<%@ page import="deepbitview.ActiviationKeyHandler" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="layout" content="main"/>

</head>

<body>

<script type="text/JavaScript">

    $(function() {

        $('.sidebar-bgtop').corner().dropShadow();
        $('.post-bgtop').corner().dropShadow();


    });

</script>


<div id="wrapper">

    <div>
        <div id="page">
            <div id="page-bgtop">
                <div id="content-fill">
                    <div class="post">
                        <div class="post-bgtop shadow">
                            <div class="post-bgbtm">
                                <h2 class="title">Registering your local wallet</h2>

                                <div class="entry">
                                    <p>
                                        currently it looks like you don't have a mtgox acount registered in the system and so you need to add it to your configuration now

                                    </p>

                                <div class="dialog">
                                    <g:form controller="mtgox" action="save">
                                        <table>

                                        <tbody>

                                        <tr class="prop">
                                            <td valign="top" class="name">
                                                <label for="password"><g:message code="mtgox.password.label"
                                                                                 default="Password"/></label>
                                            </td>
                                            <td valign="top"
                                                class="value ${hasErrors(bean: mtgoxInstance, field: 'password', 'errors')}">
                                                <g:passwordField name="password" value="${mtgoxInstance?.password}"/>
                                            </td>
                                        </tr>

                                        <tr class="prop">
                                            <td valign="top" class="name">
                                                <label for="username"><g:message code="mtgox.username.label"
                                                                                 default="Username"/></label>
                                            </td>
                                            <td valign="top"
                                                class="value ${hasErrors(bean: mtgoxInstance, field: 'username', 'errors')}">
                                                <g:textField name="username" value="${mtgoxInstance?.username}"/>
                                            </td>
                                        </tr>

                                        </tbody>
                                        </table>
                                        </div>

                                        <g:submitButton name="save" value="save mtgox account"/>
                                    </g:form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div style="clear: both; height: 1px"></div>

        </div>
    </div>
</div>
</body>
</html>
